﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="MessageDefault.aspx.cs" Inherits="bianzhuo.SupportPlatform.WebUI.BzBusiness.MessageDefault" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>消息管理</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/msg_css.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="js/common.js" type="text/javascript"></script>
    <script src="js/msg_js.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="content">
            <ul class="breadcrumb">

                <%if (Request.Cookies["BzSupport_Business"] != null)
                  {
                %>
                <li><a href="BusinessHome.Aspx?MicroId=<%= Request.Cookies["BzSupport_Business"].Values["WxID"] %>">首页</a> <span class="divider">/</span></li>
                <%} %>
                <li class="active">消息管理</li>
            </ul>
            <div class="container">
                <div class="cp_div2">
                    <div class="cpcx_l">
                        <asp:Button ID="btn24Hour" class="btn add2_btn" Text="最近一天" runat="server"
                            OnClick="btn24Hour_Click" />
                        <asp:Button ID="btnYesterday" class="btn add2_btn" Text="昨日消息"
                            runat="server" OnClick="btnYesterday_Click" />
                        <asp:Button ID="btnBeforeYesterday" class="btn add2_btn" Text="前天消息"
                            runat="server" OnClick="btnBeforeYesterday_Click" />
                        <input type="hidden" id="QuestHour" value="" runat="server" />
                    </div>
                    <div class="cpcx_r">
                        <input type="text" id="txtWordKey" class="btn" runat="server" />
                        &nbsp;
                    <asp:Button class="btn" ID="btnQuest" Text="查询" runat="server"
                        OnClick="btnQuest_Click" />
                    </div>
                </div>
                <div class="msg_newinfo"><a href="javascript:;"></a></div>

                <asp:Repeater ID="listMessageRepeater1" runat="server">
                    <HeaderTemplate>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div class="msg_div">
                            <ul>
                                <li>
                                    <%#UserInfo(Eval("MessageSender"))%>
                                    <div class="msg_date msg_col02">
                                        <%#DateDiff1(Eval("SendTime"),DateTime.Now) %> <%#StatusString(Eval("ReceiveStatus"))%>
                                    </div>
                                    <div class="msg_kjhf">
                                        <a href="javascript:void(0)" class="msg_hfa" msgid="<%#Eval("MessageId") %>" onclick="showMessageBox('<%#Eval("MessageSender") %>',<%#Eval("MessageId") %>)"></a>&nbsp;&nbsp;<asp:Button ID="btnGetUserWxInfo" Visible="false" class="btn_small" Text="同步微信数据" CommandName='<%#Eval("MessageSender") %>' OnCommand="GetUserWxInfoCommand" runat="server" />
                                    </div>
                                </li>
                                <li>
                                    <div class="msg_toplt">
                                        <div class="msg_khltico"></div>
                                        <div class="msg_tdinfo">
                                            <font><%#Eval("SendTime")%></font>
                                            <div class="msg"><%#GetMessage(Eval("MessageType"),Eval("SendContent"))%></div>
                                        </div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>
                </asp:Repeater>


                <div class="pagination">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
                        PrevPageText="上一页" PagingButtonSpacing="0px" UrlPaging="True" PageIndexBoxType="TextBox" ShowPageIndexBox="Never">
                    </webdiyer:AspNetPager>
                </div>


            </div>

            <div class="mhf_mdiv">
                <div class="mhf_mdiv_tit">
                    快速回复<span></span>
                </div>
                <div class="mhf_lrdiv">
                    <div class="mhf_main">
                        <div class="mhf_div">
                            <div class="mhf_tex">
                                <div class="mhf_texin" contenteditable="true" id="testdiv"></div>
                                <input type="hidden" id="txtSendContent" runat="server" value="" />
                            </div>
                            <div class="mhf_div_bot">
                                <a href="javascript:;" class="mhf_bq"></a>
                                <div class="mhf_dbotr">
                                    还可以输入&nbsp;248&nbsp;个字
                                </div>
                                <div class="erm_wap erp_hide">
                                    <ul class="emotions">
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/0.gif"
                                            data-title="微笑" style="background-position: 0px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/1.gif"
                                            data-title="撇嘴" style="background-position: -24px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/2.gif"
                                            data-title="色" style="background-position: -48px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/3.gif"
                                            data-title="发呆" style="background-position: -72px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/4.gif"
                                            data-title="得意" style="background-position: -96px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/5.gif"
                                            data-title="流泪" style="background-position: -120px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/6.gif"
                                            data-title="害羞" style="background-position: -144px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/7.gif"
                                            data-title="闭嘴" style="background-position: -168px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/8.gif"
                                            data-title="睡" style="background-position: -192px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/9.gif"
                                            data-title="大哭" style="background-position: -216px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/10.gif"
                                            data-title="尴尬" style="background-position: -240px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/11.gif"
                                            data-title="发怒" style="background-position: -264px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/12.gif"
                                            data-title="调皮" style="background-position: -288px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/13.gif"
                                            data-title="呲牙" style="background-position: -312px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/14.gif"
                                            data-title="惊讶" style="background-position: -336px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/15.gif"
                                            data-title="难过" style="background-position: -360px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/16.gif"
                                            data-title="酷" style="background-position: -384px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/17.gif"
                                            data-title="冷汗" style="background-position: -408px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/18.gif"
                                            data-title="抓狂" style="background-position: -432px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/19.gif"
                                            data-title="吐" style="background-position: -456px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/20.gif"
                                            data-title="偷笑" style="background-position: -480px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/21.gif"
                                            data-title="可爱" style="background-position: -504px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/22.gif"
                                            data-title="白眼" style="background-position: -528px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/23.gif"
                                            data-title="傲慢" style="background-position: -552px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/24.gif"
                                            data-title="饥饿" style="background-position: -576px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/25.gif"
                                            data-title="困" style="background-position: -600px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/26.gif"
                                            data-title="惊恐" style="background-position: -624px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/27.gif"
                                            data-title="流汗" style="background-position: -648px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/28.gif"
                                            data-title="憨笑" style="background-position: -672px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/29.gif"
                                            data-title="大兵" style="background-position: -696px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/30.gif"
                                            data-title="奋斗" style="background-position: -720px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/31.gif"
                                            data-title="咒骂" style="background-position: -744px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/32.gif"
                                            data-title="疑问" style="background-position: -768px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/33.gif"
                                            data-title="嘘" style="background-position: -792px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/34.gif"
                                            data-title="晕" style="background-position: -816px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/35.gif"
                                            data-title="折磨" style="background-position: -840px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/36.gif"
                                            data-title="衰" style="background-position: -864px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/37.gif"
                                            data-title="骷髅" style="background-position: -888px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/38.gif"
                                            data-title="敲打" style="background-position: -912px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/39.gif"
                                            data-title="再见" style="background-position: -936px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/40.gif"
                                            data-title="擦汗" style="background-position: -960px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/41.gif"
                                            data-title="抠鼻" style="background-position: -984px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/42.gif"
                                            data-title="鼓掌" style="background-position: -1008px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/43.gif"
                                            data-title="糗大了" style="background-position: -1032px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/44.gif"
                                            data-title="坏笑" style="background-position: -1056px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/45.gif"
                                            data-title="左哼哼" style="background-position: -1080px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/46.gif"
                                            data-title="右哼哼" style="background-position: -1104px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/47.gif"
                                            data-title="哈欠" style="background-position: -1128px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/48.gif"
                                            data-title="鄙视" style="background-position: -1152px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/49.gif"
                                            data-title="委屈" style="background-position: -1176px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/50.gif"
                                            data-title="快哭了" style="background-position: -1200px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/51.gif"
                                            data-title="阴险" style="background-position: -1224px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/52.gif"
                                            data-title="亲亲" style="background-position: -1248px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/53.gif"
                                            data-title="吓" style="background-position: -1272px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/54.gif"
                                            data-title="可怜" style="background-position: -1296px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/55.gif"
                                            data-title="菜刀" style="background-position: -1320px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/56.gif"
                                            data-title="西瓜" style="background-position: -1344px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/57.gif"
                                            data-title="啤酒" style="background-position: -1368px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/58.gif"
                                            data-title="篮球" style="background-position: -1392px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/59.gif"
                                            data-title="乒乓" style="background-position: -1416px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/60.gif"
                                            data-title="咖啡" style="background-position: -1440px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/61.gif"
                                            data-title="饭" style="background-position: -1464px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/62.gif"
                                            data-title="猪头" style="background-position: -1488px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/63.gif"
                                            data-title="玫瑰" style="background-position: -1512px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/64.gif"
                                            data-title="凋谢" style="background-position: -1536px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/65.gif"
                                            data-title="示爱" style="background-position: -1560px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/66.gif"
                                            data-title="爱心" style="background-position: -1584px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/67.gif"
                                            data-title="心碎" style="background-position: -1608px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/68.gif"
                                            data-title="蛋糕" style="background-position: -1632px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/69.gif"
                                            data-title="闪电" style="background-position: -1656px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/70.gif"
                                            data-title="炸弹" style="background-position: -1680px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/71.gif"
                                            data-title="刀" style="background-position: -1704px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/72.gif"
                                            data-title="足球" style="background-position: -1728px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/73.gif"
                                            data-title="瓢虫" style="background-position: -1752px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/74.gif"
                                            data-title="便便" style="background-position: -1776px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/75.gif"
                                            data-title="月亮" style="background-position: -1800px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/76.gif"
                                            data-title="太阳" style="background-position: -1824px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/77.gif"
                                            data-title="礼物" style="background-position: -1848px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/78.gif"
                                            data-title="拥抱" style="background-position: -1872px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/79.gif"
                                            data-title="强" style="background-position: -1896px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/80.gif"
                                            data-title="弱" style="background-position: -1920px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/81.gif"
                                            data-title="握手" style="background-position: -1944px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/82.gif"
                                            data-title="胜利" style="background-position: -1968px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/83.gif"
                                            data-title="抱拳" style="background-position: -1992px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/84.gif"
                                            data-title="勾引" style="background-position: -2016px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/85.gif"
                                            data-title="拳头" style="background-position: -2040px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/86.gif"
                                            data-title="差劲" style="background-position: -2064px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/87.gif"
                                            data-title="爱你" style="background-position: -2088px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/88.gif"
                                            data-title="NO" style="background-position: -2112px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/89.gif"
                                            data-title="OK" style="background-position: -2136px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/90.gif"
                                            data-title="爱情" style="background-position: -2160px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/91.gif"
                                            data-title="飞吻" style="background-position: -2184px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/92.gif"
                                            data-title="跳跳" style="background-position: -2208px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/93.gif"
                                            data-title="发抖" style="background-position: -2232px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/94.gif"
                                            data-title="怄火" style="background-position: -2256px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/95.gif"
                                            data-title="转圈" style="background-position: -2280px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/96.gif"
                                            data-title="磕头" style="background-position: -2304px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/97.gif"
                                            data-title="回头" style="background-position: -2328px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/98.gif"
                                            data-title="跳绳" style="background-position: -2352px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/99.gif"
                                            data-title="挥手" style="background-position: -2376px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/100.gif"
                                            data-title="激动" style="background-position: -2400px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/101.gif"
                                            data-title="街舞" style="background-position: -2424px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/102.gif"
                                            data-title="献吻" style="background-position: -2448px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/103.gif"
                                            data-title="左太极" style="background-position: -2472px 0;"></i></li>
                                        <li class="emotions_item"><i class="js_emotion_i" data-gifurl="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/104.gif"
                                            data-title="右太极" style="background-position: -2496px 0;"></i></li>
                                    </ul>
                                    <span class="emotions_preview">
                                        <img class="hqbqz" src="" /></span>
                                </div>
                            </div>
                        </div>
                        <div class="mhf_spbot">
                            <input id="SendMessage" type="button" class="btn msghf_btn" value="发送消息" />
                            <input type="hidden" id="toUserId" runat="server" value="" />
                            <input type="hidden" id="Msgid" runat="server" value="" />
                            <div class="mhf_shouq">收起</div>
                        </div>
                    </div>
                    <div class="mhf_right">
                        <div class="mhf_rtop">
                            <div class="mhf_rtx">
                                <div class="mhf_rtximg" id="AjaxPictrue">
                                    <img src="images/tx/tx_01.jpg" />
                                </div>
                                <div class="mhf_rtname">
                                    <span id="AjaxNickName"></span>
                                    <br />
                                    <i><span id="AjaxVipLevel"></span></i><font>会员</font>
                                </div>
                            </div>
                            <div class="mhf_rlist">
                                <ul>
                                    <li>地址<span id="AjaxAddress"></span></li>
                                    <li class="mrlsbg">姓名<span id="AjaxRealName"></span></li>
                                    <li>电话<span id="AjaxTel"></span></li>
                                    <li class="mrlsbg">账户 ¥<span id="AjaxBalance"></span></li>
                                    <li>积分<span id="AjaxProints"></span></li>
                                    <li class="mrlsbg">特权 ¥<span id="AjaxYouHui"></span></li>
                                    <li style="border-bottom: none">会员卡 <span id="AjaxNumber"></span></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </form>

    <script>


        //检测新消息
        function getnewmsg() {
            $.get('MessageDefault.aspx?checknewmsg=1&MicroId=' + getName('MicroId') + '&time=<%=DateTime.Now.ToBinary()%>' + '&t=' + Math.random(), function (data) {
                data = eval(data);
                html = "";
                if (data[0].count > 0) {
                    html = "<a href=\"MessageDefault.aspx?MicroId=" + getName('MicroId') + "\">" + data[0].count + "条新消息，点击查看</a>";
                    $('.msg_newinfo').html(html).show();
                    top.document.title = "您有" + data[0].count + "条新消息";
                } else {
                    top.document.title = "九仟CMS管理后台";
                }

            });
        }

        $(function () {

            top.document.title = "九仟CMS管理后台";

            $('.msg_newinfo').hide();
            setInterval("getnewmsg()", 10000);
            $('.msg').each(function () {
                var str = $(this).html();
                $(this).html(Emotion.replaceEmoji(str));
            });
        })

        function showMessageBox(id, msgid) {

            var data = "userid=" + id + "&t=" + new Date();
            $.ajax({
                type: "post",
                url: "../API/GetUserInfo.ashx",
                dataType: "json",
                data: { t: new Date(), userid: id },
                success: function (data) {
                    var Result = eval(data);
                    if (Result.length > 0) {
                        $("#AjaxRealName").html(Result[0].RealName);
                        $("#AjaxNickName").html(Result[0].NickName + '&nbsp;' + Result[0].MemoName);
                        $("#AjaxVipLevel").html(Result[0].UsersLevel);
                        $("#AjaxAddress").html(Result[0].UserAddress);
                        $("#AjaxTel").html(Result[0].UsersPhoneId);
                        $("#AjaxBalance").html(Result[0].CardBalance);
                        $("#AjaxProints").html(Result[0].CardPoints);
                        $("#AjaxNumber").html(Result[0].CardNumber);
                        $("#AjaxYouHui").html(Result[0].UsersMailbox);
                        $("#toUserId").val(id);
                        $("#Msgid").val(msgid);
                        $("#AjaxPictrue").html("<img src='" + Result[0].UserPictrue + "' />");
                    }
                    $('#testdiv').html('');
                    $('#txtSendContent').val('');
                    makeHuixianceng();
                    $(".mhf_mdiv").center().show();
                },
                error: function () {
                }
            });
        }


        function hiddenMDiv() {
            makeHuixianceng();
            $(".mhf_mdiv").hide();
            $('#back').remove();
            // $(".ms_right").one('click',hides);
        }


        $(function () {

            //输入长度检测         
            $("#testdiv").keydown(function () {
                var max = 248;
                var text = $('#txtSendContent').val();
                var length = max - text.length;
                if (length < 0) {
                    $('#txtSendContent').val(text.substring(0, max));
                    length = 0;
                };
                $('.mhf_dbotr').html('还可以输入 ' + length + ' 个字');


            }).change(function () {
                $(this).keydown();
            });

            $(".mhf_mdiv_tit span").live('click', function () {
                makeHuixianceng();
                $(".mhf_mdiv").hide();
                $('#back').remove();
            });
            $(".mhf_shouq").live('click', function () {
                makeHuixianceng();
                $(".mhf_mdiv").hide();
                $('#back').remove();
            });


            //点击表情弹出面板
            $(".mhf_bq").live('click', function (e) {
                e.stopPropagation();
                $(".erm_wap").removeClass("erp_hide")
            });
            $(document).live('click', function () {
                if (!$(".erm_wap").hasClass("erp_hide")) {
                    $(".erm_wap").addClass("erp_hide");
                };
            });

            $('.js_emotion_i').unbind('click');
            $('.js_emotion_i').live('click', function () {
                imgsrc = $(this).attr('data-gifurl');
                imgalt = $(this).attr('data-title');
                Emotion.insertHTML('<img src="' + imgsrc + '" alt="mo-' + imgalt + '" />');
                $textarea.trigger("contentValueChange");
            });

            ////鼠标经过出现图标
            $(".js_emotion_i").hover(function () {
                var bqz = $(this).attr("data-gifurl");
                $(".hqbqz").attr("src", bqz);
            });


            var $textarea = $("#txtSendContent");
            var $contentDiv = $("#testdiv");


            $contentDiv.live("keyup", function () {
                $textarea.trigger("contentValueChange");
                Emotion.saveRange();
            }).live("keydown", function (e) {
                switch (e.keyCode) {
                    case 8:
                        var t = Emotion.getSelection();
                        t.type && t.type.toLowerCase() === "control" && (e.preventDefault(), t.clear());
                        break;
                    case 13:
                        e.preventDefault(),
                        Emotion.insertHTML("<br/>");
                        Emotion.saveRange();
                }
            }).live("mouseup", function (e) {
                Emotion.saveRange();
                if ($.browser.msie && />$/.test($contentDiv.html())) {
                    var n = Emotion.getSelection();
                    n.extend && (n.extend(cursorNode, cursorNode.length), n.collapseToEnd()),
                    Emotion.saveRange();
                    Emotion.insertHTML(" ");
                }
            });
            $textarea.live("contentValueChange", function () {
                $(this).val(Emotion.replaceInput($contentDiv.html()));
            });

            $('#SendMessage').click(function () {
                var memo = $('#txtSendContent').val();
                if (memo == "") { return alert('请先输入内容'); }
                var touid = $('#toUserId').val();
                var msgid = $("#Msgid").val();
                $.post('MessageDefault.aspx?sendmsg=1&MicroId=' + getName('MicroId') + '&touserid=' + touid + '&replymsgid=' + msgid, { 'msg': memo }, function (data) {
                    if (data != "") {
                        msg = eval(data);
                        alert(msg[0].msg);
                    }
                    location.reload();
                });

            });
        });


    </script>

</body>
</html>
